package com.lin.server;


import com.lin.dataobject.SellerInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;

/**
 * 卖家端
 * 2017-07-29 23:14
 */
public interface SellerService {

    SellerInfo findByUserName(String userName);

    SellerInfo findByUsernameAndPassword(String userName,String password);

    List<SellerInfo> findAll(String username, String startTime, String endTime);
    Page<SellerInfo> findAll(String username,String startTime, String endTime, Pageable pageable);

    SellerInfo findUserById(String userId);

    SellerInfo save(SellerInfo sellerInfo);

    void del(SellerInfo sellerInfo);

    Long getSize(String username, String startTime, String endTime);
}
